package com.weiyi.portal.modules.ums.service;

import com.weiyi.portal.modules.ums.model.UmsFriendsRelation;
import com.baomidou.mybatisplus.extension.service.IService;
import com.weiyi.portal.modules.ums.model.UmsMember;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author PZC
 * @since 2022-11-04
 */
public interface UmsFriendsRelationService extends IService<UmsFriendsRelation> {
    /**
     * 是否关注
     * @param fromName
     * @param toName
     * @return
     */
    public Boolean isFollowed(String fromName, String toName);
    public List<String> getFriends(Integer id);
    public Boolean follow(String fromName, String toName);
    public List<UmsMember> getFans(String userName);
    public Boolean unFollow(String fromName, String toName);
}
